package Graph;

import java.io.File;

/**
 * This class runs drives the TestPlanarity program
 * 
 * @author Thomas Batzold and Ryan H Lewis.
 *
 */
public class TestPlanarity {

	public static void main(String[] args){
			File fi = new File(args[0]);
			Graph g = new Graph(fi.getAbsolutePath());
			Graph c = g.FindCycle();
			boolean res = Graph.TestPlanarity(g, c, g.findPieces(c));
			System.out.println(((res)? "planar" : "nonplanar"));
		} 
}
